package com.liuyang.demo.mybatis.mapper;

import com.liuyang.demo.mybatis.dto.OrgDispatchRuleDto;
import com.liuyang.demo.mybatis.enums.handler.ServiceOrderSourceType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrgDispatchRuleMapper {

    /**
     * 这里有三个必穿条件,这里企业必穿，来源为空时查0，渠道为空时查空字符串
     * @param sourceApplicationId
     * @param sourceType
     * @param channelKey
     * @param serviceApplicationId
     * @return
     */
    List<OrgDispatchRuleDto> findListWithoutPageMustCondition(@Param("sourceApplicationId") Long sourceApplicationId, @Param("sourceType") ServiceOrderSourceType sourceType,
                                                              @Param("channelKey") String channelKey, @Param("serviceApplicationId")Long serviceApplicationId);

}